import request from '@/utils/request_zc'

export function getProcessModelingList ({ keyword, page, limit }) {
  return request({
    url: '/process/list',
    method: 'get',
    params: {
      keyword,
      page,
      limit
    }
  })
}

export function editProcessModelingList (data) {
  return request({
    url: '/process/edit',
    method: 'post',
    data
  })
}

export function addProcessModelingList (data) {
  return request({
    url: '/process/add',
    method: 'post',
    data
  })
}

export function delProcessModelingList ({ ids }) {
  return request({
    url: '/process/del',
    method: 'post',
    data: {
      ids
    }
  })
}